package com.gbr.client.presentation.impl;

import com.gbr.application.model.RecordingArea;
import com.ng.framework.model.DefaultModelListener;

public class RecordingAreaModelListener extends DefaultModelListener<RecordingArea> {
    private DesktopPresentation presentation;
    
    public RecordingAreaModelListener(DesktopPresentation prez) {
        this.presentation = prez;
    }

    @Override
    public void add(RecordingArea model) {
        presentation.setRecordingArea(model);
    }

    @Override
    public void remove(RecordingArea model) {
        presentation.setRecordingArea(null);
    }

    @Override
    public void update(RecordingArea model) {
        presentation.setRecordingArea(model);
    }
}
